/* ==================
         卡片
 ==================== */
@import "../vars";

.cu-card {
  display: block;
  overflow: hidden;
  > {
    .cu-item {
      display: block;
      overflow: hidden;
      border-radius: 10px;
      margin: 30px;
      &.shadow-blur {
        overflow: initial;
      }
    }
  }
  &.no-card {
    > .cu-item {
      margin: 0px;
      border-radius: 0px;
    }
  }
  .grid {
    &.grid-square {
      margin-bottom: -20px;
    }
  }
  &.case {
    .image {
      position: relative;
      image {
        width: 100%;
      }
      .cu-tag {
        position: absolute;
        right: 0;
        top: 0;
      }
      .cu-bar {
        position: absolute;
        bottom: 0;
        width: 100%;
        background-color: transparent;
        padding: 0px 30px;
      }
    }
    &.no-card {
      .image {
        margin: 30px 30px 0;
        overflow: hidden;
        border-radius: 10px;
      }
    }
  }
  &.dynamic {
    display: block;
    > {
      .cu-item {
        display: block;
        background-color: $white;
        overflow: hidden;
        > {
          .text-content {
            padding: 0 30px 0;
            max-height: 6.4em;
            overflow: hidden;
            font-size: 30px;
            margin-bottom: 20px;
          }
        }
        .square-img {
          width: 100%;
          height: 200px;
          border-radius: 6px;
        }
        .only-img {
          width: 100%;
          height: 320px;
          border-radius: 6px;
        }
        .comment {
          padding: 20px;
          background-color: #f1f1f1;
          margin: 0 30px 30px;
          border-radius: 6px;
        }
      }
    }
  }
  &.article {
    display: block;
    > {
      .cu-item {
        padding-bottom: 30px;
        .title {
          font-size: 30px;
          font-weight: 900;
          color: $black;
          line-height: 100px;
          padding: 0 30px;
        }
        .content {
          display: flex;
          padding: 0 30px;
          > {
            image {
              width: 240px;
              height: 6.4em;
              margin-right: 20px;
              border-radius: 6px;
            }
          }
          .desc {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
          }
          .text-content {
            font-size: 28px;
            color: #888;
            height: 4.8em;
            overflow: hidden;
          }
        }
      }
    }
  }
}
